package com.knife.hospital.service.order;

import com.knife.hospital.entity.OrderPO;
import com.knife.hospital.model.order.OrderRequest;
import com.knife.hospital.model.order.UserOrderResponse;

import java.util.List;

public interface UserOrderService {
    /**
     * 根据用户id获取用户的预约列表
     *
     * @param id
     * @return
     */
    List<UserOrderResponse> getUserOrders(int id);

    /**
     * 用户进行预约请求
     *
     * @param orderRequest
     * @return
     */
    OrderPO applyOrder(OrderRequest orderRequest);
}
